﻿@{
    Layout = "~/Views/Shared/_Default.cshtml";
    var t_news = (Model.Translations as IEnumerable<dynamic>)
        .SingleOrDefault(x => JDM.Int32(x.Language.EntityID) ==
            JDM.Int32(Svc.Localization.Language.EntityID));
    ViewBag.PageTitle = T(Res.Name("Title"), t_news != null ? JDM.String(t_news.Title) : String.Empty);
    ViewBag.PageHistory = true;
}

@section Breadcrumb
{
    <span class="separator">/</span>
    <a href="@Url.Action(Loc.Act("Index").Localized())">@T(Res.In("WebPortal").Of("Navigation").Name("News"))</a>
}
@section Toolbar
{
    <span>@Svc.DateTimeRel((DateTime)JDM.DateTime(Model.PublishedOn))</span>
}
<div class="box">
    <section>
    @{
        Html.RenderPartial("_Text");
    }
    </section>
</div>
